﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Globalization;
using System.Threading;

namespace IDE_week2_Forms_project
{
    public partial class Form1 : Form
    {
       // Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR");
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button5_Click(object sender, EventArgs e)
        {
            Form2 f2 = new Form2();
            f2.Show();
           
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Icon = new Icon(@"C:\Users\Loic\Documents\University\Ide\Assignment 2\IDE_week2_Forms_project\IDE_week2_Forms_project\Resources\Icon1.ico");
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Form A = new Form();
            this.Icon = A.Icon;
            //this.Icon = new Icon(@"C:\Users\Loic\Documents\University\Ide\Assignment 2\IDE_week2_Forms_project\IDE_week2_Forms_project\Resources\IconDefault.ico");
        }

        private void button2_Click(object sender, EventArgs e)
        {

        }

        private void button3_Click(object sender, EventArgs e)
        {
            int[] numbers = new int[10];
            Class1.MakeRandomNumber(numbers);
            label1.Text = numbers[0] + ", " + numbers[1] + ", " + numbers[2];

        }

    }
}